
<h1>Réservations de <%= @client.nom %> <%= @client.prenom %></h1>

<table>
  <tr>
    <th>Date d'arrivée</th>
    <th>Date de départ</th>
  </tr>

<% for reservation in @reservations %>
  <tr>
    <td><%=h reservation.date_arrivee %></td>
    <td><%=h reservation.date_depart %></td>
    <td><%= link_to 'Show', client_reservation_path(@client, reservation) %></td>
    <td><%= link_to 'Edit', edit_client_reservation_path(@client, reservation) %></td>
    <td><%= link_to 'Destroy', client_reservation_path(@client, reservation), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<h3><%= link_to 'New reservation', new_client_reservation_path(@client) %></h3>
<%= link_to 'Back to Client', @client %>